<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>会员中心-一览网</title>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/member.css">
    <script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
    <script type="text/javascript" src="js/layui/layui.all.js"></script>
</head>
<body>
<header>
    <div class="m_top">
        <div class="m_top_bar">
            <div class="m_top_login fl">
                <p><b>13814503433</b> <img src="images/right.png">  <a href="member_index.html">会员中心</a> | <a href="">退出</a></p>
            </div>
            <div class="m_top_search fl">
                <form method="get" action="">
                    <div class="m_search_warp">
                        <i class="ico ico-zoom"></i>
                        <input type="text" value="" placeholder="请输入化学品的中文名，英文名或CAS号" class="m_search_txt">
                    </div>
                    <input type="submit" value="搜索" class="m_search_sub">
                </form>
            </div>
            <div class="m_top_nav rg_menu fr">
                <ul>
                    <li><a href="index.html">平台首页</a><span>|</span></li>
                    <li><div class="show_qrcode"> <img src="images/er-icon.png" class="simple">二维码 <span>|</span><div class="tip-qrcode"><img src="images/qrcode.jpg"></div></div></li>
                    <li class="kf"><a href="javascript:;" class="td">客服中心</a><span>|</span>
                        <div class="kf_child hidden">
                            <ul>
                                <li><a href="help.html">帮助中心</a> </li>
                                <li><a href="feedback.html">反馈意见</a> </li>
                                <li><a href="contact.html">联系我们</a> </li>
                            </ul>
                        </div>
                    </li>
                    <li><a href=""  class="td">网站地图</a></li>
                </ul>
            </div>
        </div>
    </div>
</header>

<div class="clearfix"></div>

<div class="contain pt20">
    <div class="m_content">
        <div class="m_menu fl">
            <div class="mt_menu">
                <dl>
                    <dt class="mn1">会员首页</dt>
                    <dd><a href="member_index.html">会员首页</a></dd>
                </dl>
                <dl>
                    <dt class="mn2">采购中心</dt>
                    <dd><a href="member_buy_add.html">新增求购</a></dd>
                    <dd>
                        <a href="member_buy_list.html">求购管理</a>
                        <ol class="hidden">
                            <li><a href="member_buy_list.html">已报价</a></li>
                            <li><a href="member_buy_list_not.html">未报价</a></li>
                            <li><a href="member_buy_list_cancel.html">取消求购</a></li>
                            <li><a href="member_buy_list_lost.html">暂时缺货</a></li>
                        </ol>
                    </dd>
                    <dd><a href="member_order_list.html">采购订单</a></dd>
                </dl>
                <dl>
                    <dt class="mn3">销售中心</dt>
                    <dd class="on"><a href="member_goods_add.html">上传目录</a></dd>
                    <dd><a href="member_goods_list.html">商品管理</a>
                        <ol class="hidden">
                            <li><a href="member_goods_list.html">已上架</a></li>
                            <li><a href="member_goods_list_down.html">已下架</a></li>
                            <li><a href="member_goods_list_check.html">待审核</a></li>
                        </ol>
                    </dd>
                    <dd><a href="member_inquiry_list.html">询单管理</a>
                        <ol class="hidden">
                            <li><a href="member_inquiry_list.html">未报价</a></li>
                            <li><a href="member_inquiry_list_had.html">已报价</a></li>
                            <li><a href="member_inquiry_list_abandon.html">已放弃</a></li>
                        </ol>
                    </dd>
                    <dd><a href="member_sell_list.html">销售订单</a></dd>
                </dl>
                <dl>
                    <dt class="mn4">账号管理</dt>
                    <dd><a href="member_account_attentions.html">我的关注</a></dd>
                    <dd><a href="member_account_informations.html">账号信息</a></dd>
                    <dd><a href="member_account_transaction.html">交易资料</a></dd>
                </dl>
            </div>
        </div>
        <div class="m_con fr">
            <div class="b-bar">
                <div class="b-title"><span>上传产品目录</span></div>
                <div class="b-con">
                    <div class="goods_txt mt40">
                        <p>请输入产品的CAS号，每行仅限输入一条产品信息，每次最多上传100条。<a href="member_goods_batch.html" class="red ml20 fz16">EXCEL批量上传</a></p>
                        <p>输入格式要求：多产品请回车 如：<br><span style="color: #2dbc9e;">100-44-7<br>203-814-45<br>1001907-60-3</span></p>
                    </div>
                    <div class="mt20">
                        <textarea id="cas_nos" name="cas_nos" class="form_textarea" placeholder="输入格式要求: CAS号（ 如：100-44-7）" style=" width: 825px; height: 100px;resize: none;"></textarea>
                    </div>
                    <div class="mt20">
                        <button class="submit_btn wdp30" onclick="javascript:void(0);" id="publish_product_btn">立即发布</button>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <div class="clearfix"></div>
</div>
<div class="clearfix"></div>
<footer>
    <div class="footer">
        <div class="foot_con">
            <div class="ft_left">
                <div class="ft_service">
                    <img src="images/service.png">
                    <p class="yellow fz16 bold mt10">电话：025-66028182</p>
                    <p class="fz16 mt10">QQ：2850281398</p>
                    <p class="fz16 mt10">工作时间 8:30 - 17:30</p>
                </div>
            </div>
            <div class="ft_center">
                <dl>
                    <dt>新手上路</dt>
                    <dd><a href="">用户注册</a></dd>
                    <dd><a href="">隐私声明</a></dd>
                    <dd><a href="">使用须知</a></dd>
                    <dd><a href="">协议条款</a></dd>
                </dl>
                <dl>
                    <dt>联系我们</dt>
                    <dd><a href="">关于我们</a></dd>
                    <dd><a href="">联系我们</a></dd>
                    <dd><a href="">合作伙伴</a></dd>
                    <dd><a href="">通知公告</a></dd>
                </dl>
                <dl>
                    <dt>售后服务</dt>
                    <dd><a href="">开票服务</a></dd>
                    <dd><a href="">退换货服务</a></dd>
                    <dd><a href="">用户反馈</a></dd>
                    <dd><a href="">发货方式</a></dd>
                </dl>
                <dl>
                    <dt>帮助中心</dt>
                    <dd><a href="">售后政策</a></dd>
                    <dd><a href="">退换货说明</a></dd>
                    <dd><a href="">退款说明</a></dd>
                    <dd><a href="">产品目录</a></dd>
                </dl>
            </div>
            <div class="ft_right">
                <div class="ft_qrcode">
                    <img src="images/qrcode.jpg">
                    <p>关注公众号</p>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="copyright">
            <p>版权所有 Copyright(C)2020 南京一览生物科技有限公司 <a href="http://www.beian.miit.gov.cn/" style="color: #777272;">苏ICP备20017967号-1</a></p>
        </div>
    </div>
    <div class="clearfix"></div>
</footer>
<div class="hidden" id="template">
    <div class="flex b_inq_item">
        <div class="flex b_inq_item_c">
            <div><input class="form_input" alis="input_cas" name="inquiry[cas][]" placeholder="请输入CAS号码" type="text" value=""></div>
            <div>
                <input class="form_input wd80" alis="input_package1" name="inquiry[package1][]" placeholder="数量1" type="number" value="" min="0" autocomplete="off">
                <select class="form_select" name="inquiry[package1_unit][]" alis="input_package1_unit" tabindex="-1">
                    <option value="">单位</option>
                    <option value="1">mg</option>
                    <option value="2">g</option>
                    <option value="3">kg</option>
                    <option value="4">ml</option>
                    <option value="5">l</option>
                    <option value="6">ton</option>
                </select>
            </div>
            <div>
                <input class="form_input wd90" alis="input_package2" name="inquiry[package2][]" type="number" value="" min="0" placeholder="数量2(选填)" autocomplete="off">
                <select class="form_select" name="inquiry[package2_unit][]" alis="input_package2_unit" tabindex="-1">
                    <option value="">单位</option>
                    <option value="1">mg</option>
                    <option value="2">g</option>
                    <option value="3">kg</option>
                    <option value="4">ml</option>
                    <option value="5">l</option>
                    <option value="6">ton</option>
                </select>
            </div>
            <div><textarea class="form_textarea" name="inquiry[note][]" cols="20" rows="2"></textarea></div>
            <div><a href="javascript:void(0);" class="blue_btn" name="delete">删除</a></div>
        </div>
        <div class="b_inq_name">二碳酸二叔丁酯Di-tert-butyl dicarbonate</div>
    </div>
</div>
</body>
</html>
<script type="text/javascript">
    $("#publish_product_btn").click(function () {

        var cas_nos = $.trim($("#cas_nos").val());
        if(cas_nos == ""){
            layer.alert('发布反馈!',{
                skin: 'layui-layer-lan',
                anim: 4
            });
            return false;
        }

        $('body').append(loading);
        $.ajax({
            url: $("#new_inquiry_vendor").attr('action'),
            data:$("#new_inquiry_vendor").serializeArray(),
            type: 'post',
            cache: false,
            dataType: 'json',
            success: function (data) {
                var msg ='您本次共上传'+data.data.total+'个商品,其中<br>';
                if(data.data.success > 0){
                    msg = msg + '发布成功: '+data.data.success+'个商品<br>';
                }
                if(data.data.check > 0){
                    msg = msg + '待审核: '+data.data.check+'个商品(商品信息待审核)<br>';
                }

                /*if(data.data.supplement > 0){
                 msg = msg + '待补充材料: '+data.data.supplement+'个商品(根据国家相关法律法规,需要您上传并关联有效资质,由一览网快速审核通后即可上架.去关联资质)<br>';
                 }*/

                if(data.data.repeat > 0){
                    msg = msg + '重复失败发布: '+data.data.repeat+'个商品<br>';
                }

                layer.confirm(msg, {
                    btn: ['继续上传','商品列表'], //按钮
                    skin: 'layui-layer-lan',
                    anim: 4,
                    btn1:function(index){
                        layer.close(index);
                    },
                    btn2:function(){
                        window.location.href = "http://www.buysellchem.com/member/sell/products";
                    }
                });
            },
            error: function () {
                layer.msg('系统异常，请联系客服人员！', {icon: 2});
            }
        })

    });
</script>